from rest_framework import serializers
from devices.models import LocDevices


class LocDevicesSerializer(serializers.ModelSerializer):
    """
    Person的序列化起 todo 为什么不能序列化 --> 因为我继承错了， 应该继承ModelSerializer
    """

    class Meta:
        model = LocDevices
        fields = '__all__'
        read_only_fields = ('id',)

